-- GENERATED SPELL FOR [Halduron Brightwing] --


function spell0_16801(pUnit, Event) --@Multi-Shot,n/a--
pUnit:FullCastSpellOnTarget(21390,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16801', 630, 1)
end

function spell1_16801(pUnit, Event) --@Shoot,n/a--
pUnit:FullCastSpellOnTarget(15620,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_16801', 560, 1)
end

function Sorts_16801(pUnit, Event)
local choix_sorts_16801 = math.random(0, 1)
if choix_sorts_16801 == 0 then
pUnit:RegisterEvent('spell0_16801', 1, 1)
end
if choix_sorts_16801 == 1 then
pUnit:RegisterEvent('spell1_16801', 1, 1)
end
end

function mob16801_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_16801', math.random(1500, 3000), 1)
end

function mob16801_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16801_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob16801_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(16801, 1, 'mob16801_Action')
RegisterUnitEvent(16801, 2, 'mob16801_Leave')
RegisterUnitEvent(16801, 3, 'mob16801_Kill')
RegisterUnitEvent(16801, 4, 'mob16801_Die')
